package com.cxf.rest;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

@Path(value="/person")
//@Produces("application/xml")
//@Produces("application/json")
@Produces("*/*")
public interface PersonService {

	@GET
	@Path("/profile/{id}")
	public Person getPersonById(@PathParam("id") int id);
	
	@GET
	@Path(value = "/list")
	public List<Person> list();
	
	@GET
	@Path(value = "/list/byAge")
	public List<Person> getPersonByAge(@QueryParam("minAge") int minAge, @QueryParam("maxAge") int maxAge);
	
}
